package interficie;

import java.awt.Color;
import java.awt.Font;

import javax.swing.DefaultListCellRenderer;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.SwingConstants;
import javax.swing.JProgressBar;

public class PantallaEspera extends JPanel {

	/**
	 * Create the panel.
	 */
	public PantallaEspera() {
		setBackground(new Color(0, 153, 255));
		setLayout(null);
		setBounds(100, 100, 668, 531);
		
		JLabel lblNewLabel = new JLabel("Calculando Orden \u00D3ptimo");
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblNewLabel.setBounds(0, 42, 668, 31);
		add(lblNewLabel);

		
		String[] data = {"one", "two", "three", "four"};
		JList list = new JList(data);
		list.setCellRenderer(new DefaultListCellRenderer(){
		       public int getHorizontalAlignment() {
		                return CENTER;
		       }
		});
		list.setFont(new Font("Tahoma", Font.PLAIN, 16));
		list.setBackground(new Color(0, 153, 255));
		list.setBounds(273, 144, 145, 134);
		add(list);
		
		JProgressBar progressBar = new JProgressBar();
		progressBar.setValue(100);
		progressBar.setBounds(239, 289, 190, 14);
		add(progressBar);
		
		JLabel label = new JLabel("100%");
		label.setFont(new Font("Tahoma", Font.BOLD, 15));
		label.setHorizontalAlignment(SwingConstants.CENTER);
		label.setBounds(0, 314, 668, 14);
		add(label);
		
		JLabel lblListaDeTareas = new JLabel("Lista de Tareas");
		lblListaDeTareas.setFont(new Font("Tahoma", Font.BOLD, 15));
		lblListaDeTareas.setHorizontalAlignment(SwingConstants.CENTER);
		lblListaDeTareas.setBounds(137, 119, 367, 14);
		add(lblListaDeTareas);
		
		JLabel lblCosteFinal = new JLabel("Coste Final:");
		lblCosteFinal.setFont(new Font("Tahoma", Font.BOLD, 15));
		lblCosteFinal.setBounds(63, 378, 109, 14);
		add(lblCosteFinal);
		
		JLabel lblMinutos = new JLabel("120 minutos");
		lblMinutos.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblMinutos.setBounds(197, 378, 119, 14);
		add(lblMinutos);
		
		JLabel lblOrdenFinal = new JLabel("Orden Final:");
		lblOrdenFinal.setFont(new Font("Tahoma", Font.BOLD, 15));
		lblOrdenFinal.setBounds(63, 421, 109, 14);
		add(lblOrdenFinal);
		
		String[] data2 = {"two", "four", "three", "one"};
		JList list2 = new JList(data2);
		list.setCellRenderer(new DefaultListCellRenderer(){
		       public int getHorizontalAlignment() {
		                return CENTER;
		       }
		});
		list2.setFont(new Font("Tahoma", Font.PLAIN, 16));
		list2.setBackground(new Color(0, 153, 255));
		list2.setBounds(197, 417, 145, 103);
		add(list2);
	}
}
